﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility;

public partial class Manage_GoodsNoPassInfo : System.Web.UI.Page
{
    public string NoPass;
    protected void Page_Load(object sender, EventArgs e)
    {
        System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> _AccountType = new System.Collections.Generic.List<HZ.MBSM.DAL.AccountType>();
        _AccountType.Add(HZ.MBSM.DAL.AccountType.enumAdmin);
        _AccountType.Add(HZ.MBSM.DAL.AccountType.enumAttorney);
        _AccountType.Add(HZ.MBSM.DAL.AccountType.enumCheckGoods);
        if (HZ.MBSM.BLL.Login.CheckAssert(_AccountType))
        {
            if (!IsPostBack)
            {
                string GoodsId = SysFun.IsSQL(SysFun.ToTrim(Request.QueryString["GoodsId"]));
                if (GoodsId != "")
                {
                    Db db = new Db();
                    System.Data.IDataReader dr;
                    string strSql = "select nopass from goods where goodsid=" + GoodsId;
                    dr = db.DataReader(strSql);
                    while (dr.Read())
                    {
                        NoPass = SysFun.ToTrim(dr["nopass"]);
                    }
                    dr.Close();
                    dr.Dispose();
                    db.Close();
                }
            }
        }
    }
}
